package com.bjsxt.chapter9_decorator;

/**
 * @ClassName FlyCar
 * @Description 飞行汽车
 * @Author 黑马程序员
 * @Date 11:51 2024/6/22
 * @Version 1.0
 **/
public class FlyCar extends SuperCar{

    public FlyCar(ICar car) {
        super(car);
    }

    public void fly(){
        System.out.println("在天上飞!");
    }

    @Override
    public void move() {
        fly();
        super.move();
    }
}
